
public class Purchaseable extends ItemDecorator
{
	public Purchaseable(Items i)
	{
		super(i);
	}
	public void checkAvailable()
	{
		
	}
	public Item buyItem(CustomerAccount account)
	{
		for(int i=0; i<items.getItemList().size(); i++)
		{
			if(items.getItemList().get(i).outgoing(account))
			{
				items.itemOut();
				return items.getItemList().get(i);
			}
		}
		return null;
	}
	public double getPrice(Item i)
	{
		return i.getPrice()*3;
	}
}
